<ui:composition
 xmlns="http://www.w3.org/1999/xhtml"
 xmlns:ui="http://java.sun.com/jsf/facelets"
 xmlns:f="http://java.sun.com/jsf/core"
 xmlns:h="http://java.sun.com/jsf/html"
 xmlns:rich="http://richfaces.org/rich"
 template="/template.xhtml">
	<ui:define name="center">
<b><h:outputText value="#{strings['Commande.detail']}" style="padding-left:20px;font-size:1.5em"/></b>

<rich:panel id="panierSummary" styleClass="pan" style="background-color:#C0D9D9">

<h:commandLink action="#{boutiqueBacking.executePDF}" immediate="true">
    <h:graphicImage name="16/pdf.png" library="icons" style="border:0; margin-right:10px;margin-left:10px" />
    <h:outputText value="#{strings['Commande.print']}"/>
   </h:commandLink>
   <br/><br/>
<rich:dataTable value="#{boutiqueBacking.commande.items}" var="data" style="border:none; width:100%;background-color:#C0D9D9" >
	 
	 <h:column style="border:none;padding-left : 30px; ">
	    <h:commandLink action="#{boutiqueBacking.selectItem(data.id)}" immediate="true">
	<h:outputText value="#{data.book.title}"/>
	</h:commandLink>
	<h:outputText value=" x "/>
	<h:outputText value="#{data.quantity}" />
	<h:outputText value=" = #{data.total} &#8364;" />
  </h:column>
 </rich:dataTable>
 <br/>
 <h:outputText value="#{strings['Order.total']} : "/>
 
 <h:outputText value="#{boutiqueBacking.commande.total} &#8364;"/>
 </rich:panel>
  </ui:define>
</ui:composition>
